﻿<%@ Page Language="C#" MasterPageFile="~/TimKiem/AdvanceSearch.master" AutoEventWireup="true"
    CodeFile="tim-kiem-nang-cao.aspx.cs" Inherits="TimKiem_tim_kiem_nang_cao" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">

    <script language="JavaScript">
        function onlyNumbers(evt)
        {
	        var e = event || evt; 
	        var charCode = e.which || e.keyCode;

	        if (charCode > 31 && (charCode < 48 || charCode > 57))
		        return false;

	        return true;

        }
    </script>

    <div id="logo">
        <img src="/images/logo.jpg" />
    </div>
    <div>
        <table cellspacing="0" cellpadding="0" width="100%">
            <tbody>
                <tr>
                    <td align="center">
                        <table cellspacing="0" cellpadding="0" style="margin-top: 0.75em; width: 80%;">
                            <tbody>
                                <tr>
                                    <td align="left">
                                        <div style="width: 100%;">
                                            <div>
                                                <div style="text-align: center; color: Blue">
                                                    <h2>
                                                        TÌM KIẾM NÂNG CAO</h2>
                                                </div>
                                            </div>
                                            <div class="block">
                                                <table cellspacing="0" cellpadding="2" width="100%">
                                                    <tbody>
                                                        <tr>
                                                            <td colspan="3">
                                                                <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <label>
                                                                    Từ khóa tìm kiếm :
                                                                </label>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:TextBox runat="server" ID="txtKeyword" Width="100%"></asp:TextBox>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <label>
                                                                    Nhóm dịch vụ :
                                                                </label>
                                                            </td>
                                                            <td>
                                                                <div>
                                                                    <asp:DropDownList runat="server" ID="cboCategory" AutoPostBack="true" DataTextField="Value"
                                                                        DataValueField="ID" AppendDataBoundItems="true" Width="100%" OnSelectedIndexChanged="cboCategory_SelectedIndexChanged">
                                                                        <asp:ListItem Text="Tất cả" Value=""></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="label">
                                                                <label>
                                                                    Từ giá :
                                                                </label>
                                                            </td>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                    <tbody>
                                                                        <tr>
                                                                            <td width="31%">
                                                                                <div>
                                                                                    <asp:TextBox runat="server" ID="txtFromCurrentPrice" Width="100%" onkeypress="return onlyNumbers();"></asp:TextBox>
                                                                                </div>
                                                                            </td>
                                                                            <td class="hint">
                                                                                Đến giá
                                                                            </td>
                                                                            <td width="31%">
                                                                                <div>
                                                                                    <asp:TextBox runat="server" ID="txtToCurrentPrice" Width="100%" onkeypress="return onlyNumbers();"></asp:TextBox>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="3">
                                                                <h3 style="margin-top: 0.7em;">
                                                                    Lựa chọn khác</h3>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="label">
                                                                <label>
                                                                    Địa điểm:
                                                                </label>
                                                            </td>
                                                            <td class="input">
                                                                <div>
                                                                    <asp:DropDownList runat="server" ID="cboLocation" DataTextField="Value" DataValueField="ID"
                                                                        AppendDataBoundItems="true" Width="100%">
                                                                        <asp:ListItem Text="Tất cả" Value="">
                                                                        </asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="label">
                                                                <label>
                                                                    Nhu cầu:
                                                                </label>
                                                            </td>
                                                            <td class="input">
                                                                <div>
                                                                    <asp:DropDownList runat="server" ID="cboNhuCau" DataTextField="NeedsName" DataValueField="NeedsAlias"
                                                                        AppendDataBoundItems="true" Width="100%">
                                                                        <asp:ListItem Text="Tất cả" Value=""></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right" colspan="3">
                                                                <asp:Button ID="btnSearch" runat="server" Text="Tìm kiếm" OnClick="btnSearch_Click" />
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div>
        <br />
        <center>
            
           <%--<asp:GridView ID="gvSearch" runat="server" CellPadding="4" ForeColor="#333333" AutoGenerateColumns="False"
            GridLines="None" Width="1214px" AllowPaging="True" PageSize="15" OnPageIndexChanging="gvSearch_PageIndexChanging">
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#E3EAEB" Height="25" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" Height="30" ForeColor="White" />
            <EditRowStyle BackColor="#7C6F57" />
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:HyperLinkField HeaderText="Tiêu đề" DataNavigateUrlFormatString="Ketqua.aspx?id=1"
                    DataNavigateUrlFields="ProductName" DataTextField="ProductName">
                    <HeaderStyle HorizontalAlign="left" />
                    <ItemStyle HorizontalAlign="Left" />
                </asp:HyperLinkField>
                <asp:BoundField DataField="NeedName" HeaderText="Dịch vụ">
                    <HeaderStyle HorizontalAlign="left" />
                    <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="ParentName" HeaderText="Địa điểm">
                    <HeaderStyle HorizontalAlign="left" />
                    <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="Price" HeaderText="Giá (VNĐ)">
                    <HeaderStyle HorizontalAlign="left" />
                    <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="ViewTime" HeaderText="Lượt xem">
                    <HeaderStyle HorizontalAlign="left" />
                    <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="CreateDate" HeaderText="Ngày đăng">
                    <HeaderStyle HorizontalAlign="left" />
                    <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="Ảnh">
                    <ItemTemplate>
                        IMAGE
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>--%>
        </center>
    </div>
</asp:Content>
